package cn.iocoder.yudao.module.bpm.controller.admin.tohandle.collect.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

/**
 * 审批流——我的收藏 Base VO，提供给添加、修改、详细的子 VO 使用
 * 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 */
@Data
public class BpmHandleCollectBaseVO {

    @Schema(description = "bpm_handle_flow表的自增id", example = "27449")
    private Long bpmHandleFlowId;

    @Schema(description = "bpm_handle_task表的自增id", example = "21276")
    private Long bpmHandleTaskId;

    @Schema(description = "收藏者的用户帐号", example = "赵仙")
    private String username;

    @Schema(description = "更新时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime updateTime;

    @Schema(description = "false 有效；true 删除", requiredMode = Schema.RequiredMode.REQUIRED, example = "true")
    @NotNull(message = "false 有效；true 删除")
    private Boolean deleted;

}
